package com.mk.service;

import com.mk.base.service.IBaseService;
import com.mk.model.entity.Dir;
import com.mk.model.entity.Search;
import com.mk.model.request.DirRequest;

import java.util.List;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 9:58 AM 3/15/18
 */
public interface IDirService extends IBaseService<Dir> {

    Dir saveDir(DirRequest request);

    Boolean updateDir(DirRequest request);

    Boolean deleteDir(Long id);

    Dir get(Long id,Long userId);

    List<Dir> findDirsByParentAndTitle(Long parent,String title);

    List<Dir> findAll(Long userId);

    List<Search> keySearch(String key,Long userId);
}
